/*  1:   */ package org.jetbrains.debugger;
/*  2:   */ 
/*  3:   */

import com.intellij.openapi.fileEditor.OpenFileDescriptor;
import com.intellij.openapi.project.Project;
import com.intellij.pom.Navigatable;
import com.intellij.xdebugger.XSourcePosition;
import com.intellij.xdebugger.XSourcePositionWrapper;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */
/*  8:   */
/*  9:   */
/* 10:   */ 
/* 11:   */ public class SourceInfo
/* 12:   */   extends XSourcePositionWrapper
/* 13:   */ {
/* 14:   */   private final String a;
/* 15:   */   private final int b;
/* 16:   */   
/* 17:   */   @Nullable
/* 18:   */   public static SourceInfo create(@Nullable String paramString, @Nullable XSourcePosition paramXSourcePosition, int paramInt)
/* 19:   */   {
/* 20:17 */     return paramXSourcePosition == null ? null : new SourceInfo(paramString, paramXSourcePosition, paramInt);
/* 21:   */   }
/* 22:   */   
/* 23:   */   private SourceInfo(@Nullable String paramString, @NotNull XSourcePosition paramXSourcePosition, int paramInt)
/* 24:   */   {
/* 25:21 */     super(paramXSourcePosition);
/* 26:   */     
/* 27:23 */     this.a = paramString;
/* 28:24 */     this.b = paramInt;
/* 29:   */   }
/* 30:   */   
/* 31:   */   @Nullable
/* 32:   */   public String getFunctionName()
/* 33:   */   {
/* 34:29 */     return this.a;
/* 35:   */   }
/* 36:   */   
/* 37:   */   public int getColumn()
/* 38:   */   {
/* 39:33 */     return this.b;
/* 40:   */   }
/* 41:   */   
/* 42:   */   @NotNull
/* 43:   */   public Navigatable createNavigatable(@NotNull Project paramProject)
/* 44:   */   {
/* 45:39 */     if (paramProject == null) {
/* 46:39 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/jetbrains/debugger/SourceInfo", "createNavigatable" }));
/* 47:   */     }
/* 48:39 */     void tmp70_67 = new OpenFileDescriptor(paramProject, this.myPosition.getFile(), this.myPosition.getLine(), this.b);
/* 49:39 */     if (tmp70_67 == null) {
/* 50:39 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/jetbrains/debugger/SourceInfo", "createNavigatable" }));
/* 51:   */     }
/* 52:39 */     return tmp70_67;
/* 53:   */   }
/* 54:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.jetbrains.debugger.SourceInfo

 * JD-Core Version:    0.7.0.1

 */